package com.xnyzc.lhy.common.penum;


import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 资源类型
 *
 * @Author: Long
 * @Date: 2019/1/2 14:26
 */
public enum EResourceType implements PEnum<String> {
    coverImage("封面图", false), image("图片", false), file("文件", false), wechatCard("微信名片", true), wechatQrCard("微信二维码名片", true), proCard("微信小程序名片",
            true);

    private String desc;
    private boolean isUnique;

    EResourceType(String desc, boolean isUnique) {
        this.desc = desc;
        this.isUnique = isUnique;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }

    public boolean isUniq() {
        return isUnique;
    }
}
